"""
CheckBox
========
"""
from wxpita import *

f = SizedFrame [
    CheckBox(name='chk1', label='CheckBox One'),
    CheckBox(name='chk2', label='CheckBox Two'),
    
    TextCtrl(name='log', style='te_multiline', expand=True, proportion=1),
]

@f.Init
def _():
    f.chk2.SetValue(True)

@f.chk1.checkbox_clicked
@f.chk2.checkbox_clicked
def _(evt):
    f.log.AppendText('You checked <%s>\n' % evt.EventObject.GetLabel())

f.Show('CheckBox Example', size=(300,300))
